<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "https://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" lang="zh">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=11"/>
<meta name="generator" content="Doxygen 1.11.0"/>
<meta name="viewport" content="width=device-width, initial-scale=1"/>
<title>cppMISC: src/resolver.cpp 文件参考</title>
<link href="../../tabs.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="../../jquery.js"></script>
<script type="text/javascript" src="../../dynsections.js"></script>
<script type="text/javascript" src="../../clipboard.js"></script>
<link href="../../navtree.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="../../resize.js"></script>
<script type="text/javascript" src="../../cookie.js"></script>
<link href="../../search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="../../search/searchdata.js"></script>
<script type="text/javascript" src="../../search/search.js"></script>
<script type="text/javascript" src="../../darkmode_toggle.js"></script>
<link href="../../doxygen.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr id="projectrow">
  <td id="projectalign">
   <div id="projectname">cppMISC<span id="projectnumber">&#160;v1.1</span>
   </div>
   <div id="projectbrief">cppMisc 文档系统</div>
  </td>
 </tr>
 </tbody>
</table>
</div>
<!-- end header part -->
<!-- 制作者 Doxygen 1.11.0 -->
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:d3d9a9a6595521f9666a5e94cc830dab83b65699&amp;dn=expat.txt MIT */
var searchBox = new SearchBox("searchBox", "../../search/",'.html');
/* @license-end */
</script>
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:d3d9a9a6595521f9666a5e94cc830dab83b65699&amp;dn=expat.txt MIT */
$(function() { codefold.init(1); });
/* @license-end */
</script>
<script type="text/javascript" src="../../menudata.js"></script>
<script type="text/javascript" src="../../menu.js"></script>
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:d3d9a9a6595521f9666a5e94cc830dab83b65699&amp;dn=expat.txt MIT */
$(function() {
  initMenu('../../',true,false,'search.php','搜索',false);
  $(function() { init_search(); });
});
/* @license-end */
</script>
<div id="main-nav"></div>
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:d3d9a9a6595521f9666a5e94cc830dab83b65699&amp;dn=expat.txt MIT */
$(function(){ initResizable(false); });
/* @license-end */
</script>
<!-- window showing the filter options -->
<div id="MSearchSelectWindow"
     onmouseover="return searchBox.OnSearchSelectShow()"
     onmouseout="return searchBox.OnSearchSelectHide()"
     onkeydown="return searchBox.OnSearchSelectKey(event)">
</div>

<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<div id="MSearchResults">
<div class="SRPage">
<div id="SRIndex">
<div id="SRResults"></div>
<div class="SRStatus" id="Loading">载入中...</div>
<div class="SRStatus" id="Searching">搜索中...</div>
<div class="SRStatus" id="NoMatches">未找到</div>
</div>
</div>
</div>
</div>

<div id="nav-path" class="navpath">
  <ul>
<li class="navelem"><a class="el" href="../../dir_68267d1309a1af8e8297ef4c3efbcdba.html">src</a></li>  </ul>
</div>
</div><!-- top -->
<div id="doc-content">
<div class="header">
  <div class="summary">
<a href="#func-members">函数</a>  </div>
  <div class="headertitle"><div class="title">resolver.cpp 文件参考</div></div>
</div><!--header-->
<div class="contents">
<div class="textblock"><code>#include &lt;iostream&gt;</code><br />
<code>#include &lt;sstream&gt;</code><br />
<code>#include &lt;functional&gt;</code><br />
<code>#include &lt;unistd.h&gt;</code><br />
<code>#include &lt;stdlib.h&gt;</code><br />
<code>#include &quot;<a class="el" href="../../dc/da6/resolver_8hpp_source.html">resolver.hpp</a>&quot;</code><br />
<code>#include &quot;<a class="el" href="../../d0/d0e/misc_8hpp_source.html">misc.hpp</a>&quot;</code><br />
</div><div class="textblock"><div class="dynheader">
resolver.cpp 的引用(Include)关系图:</div>
<div class="dyncontent">
<div class="center"><img src="../../d4/de9/resolver_8cpp__incl.png" border="0" usemap="#asrc_2resolver_8cpp" alt=""/></div>
<map name="asrc_2resolver_8cpp" id="asrc_2resolver_8cpp">
<area shape="rect" title=" " alt="" coords="554,5,668,32"/>
<area shape="rect" title=" " alt="" coords="48,304,120,331"/>
<area shape="poly" title=" " alt="" coords="553,22,459,27,402,35,342,46,281,64,221,87,165,118,115,157,95,186,84,221,81,257,83,289,77,289,76,257,79,220,90,184,111,153,162,113,219,82,279,58,341,41,401,29,459,22,553,16"/>
<area shape="rect" title=" " alt="" coords="680,80,749,107"/>
<area shape="poly" title=" " alt="" coords="630,30,686,69,683,73,627,35"/>
<area shape="rect" title=" " alt="" coords="245,379,323,405"/>
<area shape="poly" title=" " alt="" coords="553,24,404,34,314,43,223,57,140,76,71,100,44,114,25,130,12,148,8,167,8,244,9,271,12,292,21,310,38,329,70,346,120,361,230,381,229,386,119,366,68,351,34,333,16,313,7,293,3,271,3,244,3,166,7,146,21,127,41,110,69,95,138,71,222,52,313,38,404,29,553,19"/>
<area shape="rect" title=" " alt="" coords="773,80,840,107"/>
<area shape="poly" title=" " alt="" coords="646,30,760,72,758,77,644,35"/>
<area shape="rect" title=" " alt="" coords="864,80,928,107"/>
<area shape="poly" title=" " alt="" coords="664,30,850,77,848,82,662,35"/>
<area shape="rect" href="../../dc/da6/resolver_8hpp.html" title=" " alt="" coords="564,80,657,107"/>
<area shape="poly" title=" " alt="" coords="613,33,613,64,608,64,608,33"/>
<area shape="rect" href="../../d0/d0e/misc_8hpp.html" title=" " alt="" coords="370,80,444,107"/>
<area shape="poly" title=" " alt="" coords="576,35,458,77,456,72,574,30"/>
<area shape="poly" title=" " alt="" coords="625,105,649,133,674,171,682,193,687,215,686,236,678,257,647,297,608,328,564,352,516,369,467,381,420,389,339,394,338,389,419,383,466,376,514,364,562,347,605,323,643,293,674,255,681,235,682,215,677,194,669,174,645,136,621,109"/>
<area shape="rect" title=" " alt="" coords="738,155,816,181"/>
<area shape="poly" title=" " alt="" coords="641,105,735,146,733,151,639,110"/>
<area shape="rect" title=" " alt="" coords="611,229,664,256"/>
<area shape="poly" title=" " alt="" coords="617,106,628,154,637,213,632,214,623,155,611,108"/>
<area shape="rect" href="../../dc/d4b/uvlper_8hpp.html" title=" " alt="" coords="841,155,922,181"/>
<area shape="poly" title=" " alt="" coords="658,104,826,149,825,154,657,110"/>
<area shape="rect" href="../../d3/df7/ary__str_8hpp.html" title=" " alt="" coords="528,155,614,181"/>
<area shape="poly" title=" " alt="" coords="606,109,587,142,583,140,601,106"/>
<area shape="rect" title=" " alt="" coords="739,229,784,256"/>
<area shape="poly" title=" " alt="" coords="862,184,797,223,794,219,859,180"/>
<area shape="rect" title=" " alt="" coords="808,229,869,256"/>
<area shape="poly" title=" " alt="" coords="876,183,856,217,851,215,872,181"/>
<area shape="rect" href="../../de/d6d/singleton_8hpp.html" title=" " alt="" coords="892,229,1044,256"/>
<area shape="poly" title=" " alt="" coords="898,180,943,217,940,221,895,184"/>
<area shape="rect" title=" " alt="" coords="911,304,980,331"/>
<area shape="poly" title=" " alt="" coords="967,257,956,290,951,288,962,256"/>
<area shape="rect" title=" " alt="" coords="783,304,865,331"/>
<area shape="poly" title=" " alt="" coords="944,259,864,299,862,294,942,254"/>
<area shape="poly" title=" " alt="" coords="584,180,618,216,614,220,580,184"/>
<area shape="rect" title=" " alt="" coords="529,229,586,256"/>
<area shape="poly" title=" " alt="" coords="571,182,565,215,560,214,566,181"/>
<area shape="poly" title=" " alt="" coords="370,101,243,121,181,137,157,146,140,157,117,187,101,222,92,258,88,289,83,288,87,257,96,220,112,184,137,153,154,141,179,132,241,115,369,96"/>
<area shape="poly" title=" " alt="" coords="375,110,337,128,295,154,254,188,237,208,224,230,219,246,216,271,218,300,226,330,239,350,256,367,252,371,235,353,222,332,213,301,211,271,214,245,219,228,233,205,251,185,291,150,335,123,373,105"/>
<area shape="poly" title=" " alt="" coords="422,105,464,140,517,179,598,222,595,226,515,184,460,144,419,109"/>
<area shape="poly" title=" " alt="" coords="416,105,440,140,474,179,524,218,521,223,470,183,436,143,412,108"/>
<area shape="rect" href="../../d8/d68/fs_8hpp.html" title=" " alt="" coords="345,155,402,181"/>
<area shape="poly" title=" " alt="" coords="403,108,388,142,383,139,398,106"/>
<area shape="poly" title=" " alt="" coords="345,175,317,181,287,191,258,208,236,231,231,244,228,266,230,296,238,330,249,349,262,366,258,369,244,352,234,332,224,297,222,266,225,243,231,228,255,203,284,186,316,176,344,170"/>
<area shape="poly" title=" " alt="" coords="403,174,597,226,595,231,402,179"/>
<area shape="rect" title=" " alt="" coords="334,229,413,256"/>
<area shape="poly" title=" " alt="" coords="376,182,376,214,371,214,371,182"/>
<area shape="rect" title=" " alt="" coords="245,229,310,256"/>
<area shape="poly" title=" " alt="" coords="358,184,308,222,305,218,355,180"/>
<area shape="rect" href="../../de/dfd/tree_8hpp.html" title=" " alt="" coords="436,229,505,256"/>
<area shape="poly" title=" " alt="" coords="392,180,444,218,440,222,389,184"/>
<area shape="poly" title=" " alt="" coords="437,256,426,259,267,289,136,311,135,306,267,284,425,253,435,251"/>
<area shape="poly" title=" " alt="" coords="487,255,503,271,517,290,523,312,517,332,505,343,488,352,442,367,339,387,338,382,441,362,486,347,502,338,512,329,518,312,512,293,499,274,484,258"/>
<area shape="poly" title=" " alt="" coords="506,251,518,253,618,270,697,280,776,288,878,301,896,304,895,310,877,307,776,293,697,285,618,276,517,259,505,256"/>
<area shape="poly" title=" " alt="" coords="506,251,518,253,768,303,767,309,517,259,505,256"/>
<area shape="rect" title=" " alt="" coords="434,304,502,331"/>
<area shape="poly" title=" " alt="" coords="473,257,472,288,466,288,468,256"/>
<area shape="rect" title=" " alt="" coords="247,304,286,331"/>
<area shape="poly" title=" " alt="" coords="437,258,301,306,299,301,435,253"/>
<area shape="rect" href="../../d6/de9/typetraits_8hpp.html" title=" " alt="" coords="310,304,410,331"/>
<area shape="poly" title=" " alt="" coords="453,259,393,298,390,293,450,254"/>
<area shape="poly" title=" " alt="" coords="349,333,310,370,306,366,345,329"/>
</map>
</div>
</div>
<p><a href="../../d6/d77/resolver_8cpp_source.html">浏览该文件的源代码.</a></p>
<table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a id="func-members" name="func-members"></a>
函数</h2></td></tr>
<tr class="memitem:a54bd5e9cc3e97cc0eb97c95e7bad5f4d" id="r_a54bd5e9cc3e97cc0eb97c95e7bad5f4d"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="#a54bd5e9cc3e97cc0eb97c95e7bad5f4d">on_resolver_cb</a> (uv_getaddrinfo_t *req, int status, struct addrinfo *res)</td></tr>
<tr class="separator:a54bd5e9cc3e97cc0eb97c95e7bad5f4d"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table>
<h2 class="groupheader">函数说明</h2>
<a id="a54bd5e9cc3e97cc0eb97c95e7bad5f4d" name="a54bd5e9cc3e97cc0eb97c95e7bad5f4d"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a54bd5e9cc3e97cc0eb97c95e7bad5f4d">&#9670;&#160;</a></span>on_resolver_cb()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void on_resolver_cb </td>
          <td>(</td>
          <td class="paramtype">uv_getaddrinfo_t *</td>          <td class="paramname"><span class="paramname"><em>req</em></span>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">int</td>          <td class="paramname"><span class="paramname"><em>status</em></span>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">struct addrinfo *</td>          <td class="paramname"><span class="paramname"><em>res</em></span>&#160;)</td>
        </tr>
      </table>
</div><div class="memdoc">

<p class="definition">在文件 <a class="el" href="../../d6/d77/resolver_8cpp_source.html">resolver.cpp</a> 第 <a class="el" href="../../d6/d77/resolver_8cpp_source.html#l00012">12</a> 行定义.</p>
<div class="dynheader">
函数调用图:</div>
<div class="dyncontent">
<div class="center"><img src="../../d6/d77/resolver_8cpp_a54bd5e9cc3e97cc0eb97c95e7bad5f4d_cgraph.png" border="0" usemap="#ad6/d77/resolver_8cpp_a54bd5e9cc3e97cc0eb97c95e7bad5f4d_cgraph" alt=""/></div>
<map name="ad6/d77/resolver_8cpp_a54bd5e9cc3e97cc0eb97c95e7bad5f4d_cgraph" id="ad6/d77/resolver_8cpp_a54bd5e9cc3e97cc0eb97c95e7bad5f4d_cgraph">
<area shape="rect" title=" " alt="" coords="5,43,115,69"/>
<area shape="rect" href="../../d1/d91/classwheels_1_1resolver.html#a77040f18326deaf3d6e5656406267598" title=" " alt="" coords="178,5,316,48"/>
<area shape="poly" title=" " alt="" coords="115,45,162,37,163,43,116,50"/>
<area shape="rect" href="../../d1/d91/classwheels_1_1resolver.html#adadcdb5bd66b45fe0afdc66c79bd0ced" title=" " alt="" coords="163,72,331,99"/>
<area shape="poly" title=" " alt="" coords="116,62,148,67,147,72,115,67"/>
</map>
</div>
<div class="dynheader">
这是这个函数的调用关系图:</div>
<div class="dyncontent">
<div class="center"><img src="../../d6/d77/resolver_8cpp_a54bd5e9cc3e97cc0eb97c95e7bad5f4d_icgraph.png" border="0" usemap="#ad6/d77/resolver_8cpp_a54bd5e9cc3e97cc0eb97c95e7bad5f4d_icgraph" alt=""/></div>
<map name="ad6/d77/resolver_8cpp_a54bd5e9cc3e97cc0eb97c95e7bad5f4d_icgraph" id="ad6/d77/resolver_8cpp_a54bd5e9cc3e97cc0eb97c95e7bad5f4d_icgraph">
<area shape="rect" title=" " alt="" coords="220,81,329,108"/>
<area shape="rect" href="../../d1/d91/classwheels_1_1resolver.html#a1b75f8f7a7d57656aabc86a5476af3c6" title=" " alt="" coords="5,5,172,32"/>
<area shape="poly" title=" " alt="" coords="234,76,171,46,139,35,141,30,173,42,236,71"/>
<area shape="rect" href="../../d1/d91/classwheels_1_1resolver.html#af8d75fee8d102d8143be8b76a0fec1f0" title=" " alt="" coords="5,56,172,83"/>
<area shape="poly" title=" " alt="" coords="204,88,172,83,173,78,205,83"/>
<area shape="rect" href="../../d1/d91/classwheels_1_1resolver.html#adb2466244a1cd145e6a53621f7fbfe23" title="解析给定的域名。" alt="" coords="5,107,172,133"/>
<area shape="poly" title=" " alt="" coords="205,107,173,111,172,106,204,102"/>
<area shape="rect" href="../../d1/d91/classwheels_1_1resolver.html#a614a278674742bdcab48df0504650747" title=" " alt="" coords="5,157,172,184"/>
<area shape="poly" title=" " alt="" coords="236,118,173,148,141,159,139,154,171,143,234,113"/>
</map>
</div>

</div>
</div>
</div><!-- contents -->
<!-- start footer part -->
<hr class="footer"/><address class="footer"><small>
制作者&#160;<a href="https://www.doxygen.org/index.html"><img class="footer" src="../../doxygen.svg" width="104" height="31" alt="doxygen"/></a> 1.11.0
</small></address>
</div><!-- doc-content -->
</body>
</html>
